<?php defined( '_SYS' ) or die( 'No direct script access allowed' );?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $this->title; ?></title>
<?php echo $this->headData; ?>
</head>
<body>

	<div id="toolbar-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>
		<div class="m">
			<div class="toolbar" id="toolbar">
				<table class="toolbar">
					<tr>
						<td class="button" id="toolbar-new">
							<a href="#" onclick="javascript: submitbutton('add')" class="toolbar">
								<span class="icon-32-new" title="New">
								</span>
							<?php echo C_text::_('New');?>
							</a>
						</td>
						<td class="button" id="toolbar-edit">
							<a href="#" onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('<?php echo C_text::_('Tip9');?>');}else{ submitbutton('edit')}" class="toolbar">
								<span class="icon-32-edit" title="Edit">
								</span>
							<?php echo C_text::_('Edit');?>
							</a>
						</td>
						<td class="button" id="toolbar-delete">
							<a href="#" onclick="javascript:if(document.adminForm.boxchecked.value==0){alert('<?php echo C_text::_('Tip8');?>');}else{  if(confirm('<?php echo C_text::_('Tip12');?>')) submitbutton('remove')}" class="toolbar">
								<span class="icon-32-delete" title="Delete">
								</span>
							<?php echo C_text::_('Delete');?>
							</a>
						</td>						
					</tr>
				</table>
			</div>
			<div class="header icon-48-user"><?php echo C_text::_('g_ToolBox').' '.C_text::_('Groups');;?></div>	
			<div class="clr"></div>		
		</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
	</div>
	
	<div id="submenu-box">
			<div class="t">
				<div class="t">
					<div class="t"></div>
		 		</div>
	 		</div>
			<div class="m">

				<div class="submenu-box">
	<div class="submenu-pad">
		<ul id="submenu" class="configuration">
			<li><a href="<?php echo WEBSELF; ?>/user/display/option/users"><?php echo C_text::_('Users');?></a></li>
			<li><a class="active" href="<?php echo WEBSELF; ?>/user/display/option/groups"><?php echo C_text::_('Groups');?></a></li>
		</ul>

		<div class="clr"></div>
	</div>
</div>
<div class="clr"></div>
				<div class="clr"></div>
			</div>
<div class="b">
				<div class="b">
		 			<div class="b"></div>
				</div>

			</div>
		</div>
	
	<div class="clr"></div>
	<?php if($this->message) echo $this->message;?>
	<div id="element-box">
		<div class="t">
			<div class="t">
				<div class="t"></div>
			</div>
		</div>		
		
		
<div class="m">
<form action="<?php echo WEBSELF; ?>/user" method="post" name="adminForm">
	<table class="adminlist">
		<thead>
			<tr>
				<th width="2%" class="title">
					#
				</th>
				<th width="3%">
					<input class="cb" type="checkbox" name="toggle" value="" onclick="checkAll(<?php echo count($this->items); ?>)" />
				</th>
				<th>
					<?php echo C_text::_('g_Items1'); ?>
				</th>
				<th>
					<?php echo C_text::_('g_Items2'); ?>
				</th>
			</tr>
		</thead>
		<tbody>
			<?php
			$num = $n = 0;
			foreach ($this->items as $item) : ?>
			<tr class="row<?php echo $n++ % 2; ?>">
				<td>
					<?php echo $num+1;?>
				</td>
				<td style="text-align:center">
					<?php echo C_html::_('grid.id', $num, $item->id); ?>
				</td>
				<td style="color:#0B55C4;padding-left:<?php echo intval(($item->level)*15)+4; ?>px">					
						<?php echo $item->title; ?>
				</td>
				<td align="center">
					<?php echo $item->user_count ? $item->user_count : ''; ?>
				</td>
			</tr>
			<?php
			$num++;
			endforeach;
			?>
		</tbody>
	</table>

	<input type="hidden" name="option" value="groups" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<?php echo C_HTML::_( 'form.token' ); ?>
</form>
</div>
		<div class="b">
			<div class="b">
				<div class="b"></div>
			</div>
		</div>
</div>
<center>
	Powered by <b><a href='http://www.metinfo.cn' target='_blank'>MetInfo</a></b> ©2008- <?php echo date('Y',time());?>&nbsp;<a href='http://www.metinfo.cn' target='_blank'>www.MetInfo.cn</a>
</center>
<?php echo $this->js; ?>
</body>
</html>